package net.dopan.pigframe;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Package: net.dopan.pigframe
 * @Title: DemoServerApplication
 * @Description: demo系统服务启动类
 * @author: 刘宽
 * @date: 2018/10/15 13:38
 */
@EnableAsync
@SpringBootApplication(scanBasePackages = {"net.dopan.pigframe", "net.dopan.pigframe.demo", "net.dopan.pigframe.core.bean"})
@EnableEurekaClient
@EnableCircuitBreaker
@EnableFeignClients(basePackages = "net.dopan.pigframe.api.fegin")
@EnableHystrix
@EnableApolloConfig({"application","ignoreurl","bootstrap","activeplatform.druid","activeplatform.redis","activeplatform.rabbitmq","activeplatform.oauth2","activeplatform.log","activeplatform.feign","activeplatform.hystrix","activeplatform.eureka"})
public class DemoServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoServerApplication.class, args);
        System.out.println("==================DemoServerApplication Start============");
    }
}

